package edu.chen.service;

import edu.chen.bean.Product;

import java.util.List;

public interface ProductService {
    /**
     * check if it exists
     * @param id
     * @return
     */
    boolean exist(int id);
    boolean exist(String name);
    int save(Product product);
    boolean delete(int id);
    Product query(int id);
    List<Product> query(String name);
}
